package com.moon.dao;

import com.moon.entity.THistory;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface THistoryMapper extends Mapper<THistory> {
    @Select("SELECT id, user_id userId, auction_id auctionId FROM t_history WHERE user_id = #{userId}")
    List<THistory> selectTHistoryByUserId(Long userId);
}